home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / gfx / conv / ilbm24.lha / ilbm / packer.h < prev    next >
C/C++ Source or Header  |  1993-02-04  |  816b  |  27 lines

  1. #ifndef PACKER_H
  2. #define PACKER_H
  3. /*----------------------------------------------------------------------*
  4.  * PACKER.H  typedefs for Data-Compresser.                  1/22/86
  5.  *
  6.  * This module implements the run compression algorithm "cmpByteRun1"; the
  7.  * same encoding generated by Mac's PackBits.
  8.  *
  9.  * By Jerry Morrison and Steve Shaw, Electronic Arts.
  10.  * This software is in the public domain.
  11.  *
  12.  * This version for the Commodore-Amiga computer.
  13.  *----------------------------------------------------------------------*/
  14.  
  15. #include <writeilbm.h>
  16.  
  17. /* This macro computes the worst case packed size of a "row" of bytes. */
  18. #define MaxPackedSize(rowSize)  ( (rowSize) + ( ((rowSize)+127) >> 7 ) )
  19.  
  20. extern long PackRow(byte *, byte *, long);
  21.         /*  pSource, pDest,   rowSize */
  22.  
  23. long PackRow(byte *,byte *,long);
  24.  
  25. #endif
  26.  
  27.